package com.youlu.campus.service.activity;

import com.youlu.campus.entity.ActivityCmsSlideshow;
import com.youlu.campus.entity.VO.req.ActivityCmsSlideshowQueryVO;
import org.springframework.data.domain.Page;

import java.util.List;
/**
 * 活动轮播图Service
 */

public interface ActivityCmsSlideshowService {
    /**
     * 活动轮播图列表
     *
     * @param req
     * @return
     */
    Page<ActivityCmsSlideshow> list(ActivityCmsSlideshowQueryVO req);

    ActivityCmsSlideshow find(String id);

    boolean create(ActivityCmsSlideshow req);

    boolean update(ActivityCmsSlideshow req);

    boolean delete(String id);

    /**
     * 通过活动ID查找轮播图
     *
     * @param activityId
     * @return
     */

    List<ActivityCmsSlideshow> findByActivityId(String activityId);
}
